import request from '@/utils/request'

// 查询工程信息列表
export function listEngineering(query) {
  return request({
    url: '/engineering/engineering/list',
    method: 'get',
    params: query
  })
}

// 查询工程信息详细
export function getEngineering(id) {
  return request({
    url: '/engineering/engineering/' + id,
    method: 'get'
  })
}

// 新增工程信息
export function addEngineering(data) {
  return request({
    url: '/engineering/engineering',
    method: 'post',
    data: data
  })
}

// 修改工程信息
export function updateEngineering(data) {
  return request({
    url: '/engineering/engineering',
    method: 'put',
    data: data
  })
}

// 删除工程信息
export function delEngineering(id) {
  return request({
    url: '/engineering/engineering/' + id,
    method: 'delete'
  })
}
// 删除工程信息
export function logicDelEngineering(id) {
  return request({
    url: '/engineering/engineering/' + id,
    method: 'delete'
  })
}

// 导出工程信息
export function exportEngineering(query) {
  return request({
    url: '/engineering/engineering/export',
    method: 'get',
    params: query
  })
}
